/*
 * @Author: cdfy2 1908001401@qq.com
 * @Date: 2023-11-02 13:55:50
 */

import type { FilterItem } from '@/components/FilterBar/types'

export const exampleOptions: FilterItem[] = [{
    label: '时间', // 后续由接口获取下拉数据
    prop: 'date',
    type: 'datePicker',
    span: 8,
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'value-format': 'YYYY-MM-DD',
      'start-placeholder': 'YYYY-MM-DD',
      'end-placeholder': 'YYYY-MM-DD',
      'range-separator': '至',
        disabledDateFn:(time: { getTime: () => number })=>{
          console.log(Date)
            return time.getTime() > Date.now()- 24*3600*1000
        }
    }
  }, {
    label: '人员姓名', // 后续由接口获取下拉数据
    prop: 'name',
    type: 'input',
    span: 8,
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入姓名'
    }
}]
